// Copyright (C) ustc9703
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-8-18

#ifndef __USERBOX_H__
#define __USERBOX_H__

#pragma once

#pragma once
#include <common\ui\combobox.h>

class CJoyUserBox;

//##ModelId=44C4B5D9038A
class CJoyUserBoxItem : public CJoyComboItem
{
protected:
	//##ModelId=44C4B5D9038C
    virtual void CM_Draw(Graphics& graph);
public:
	//##ModelId=44C4B5D9039A
    CStringW    m_nickName;
	//##ModelId=44C4B5D9039E
    UINT        m_userId;

	//##ModelId=44C4B5D9039F
    CJoyUserBox* GetUserBox()
    {
        return (CJoyUserBox*)
            ((CJoyComboList*)m_listView)->GetComboBox();
    }
};

//##ModelId=44C4B5D903A9
class CJoyUserBox :
    public CJoyComboBox
{
protected:
	//##ModelId=44C4B5D903AB
    virtual void CM_Draw(Graphics& graph);
	//##ModelId=44C4B5D903BA
    virtual void CM_LoadSkin(CJoyXmlElement* pSkinElem);
	//##ModelId=44C4B5D903BD
    virtual void CM_SelItem(CJoyComboItem* item);
public:
	//##ModelId=44C4B5D903C9
    Color   m_itemBackColor;
	//##ModelId=44C4B5D903CE
    Color   m_itemTextColor;
	//##ModelId=44C4B5D903D3
    Color   m_selTextColor;
	//##ModelId=44C4B5D903D9
    Color   m_selBackColor;

	//##ModelId=44C4B5D903DE
    Color   m_frameColor;
	//##ModelId=44C4B5D903E2
    int m_textMargin;

	//##ModelId=44C4B5DA0000
    CJoyUserBox(void);
	//##ModelId=44C4B5DA0002
    virtual ~CJoyUserBox(void);

	//##ModelId=44C4B5DA0005
    CJoyUserBoxItem* GetSelItem()
    {
        return (CJoyUserBoxItem*)this->m_selItem;
    }
};

#endif  // __USERBOX_H__
